/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package puzzleevolution;

/**
 *
 * @author vorispe1
 */
public class Pixel {

    private int red;
    private int green;
    private int blue;
    private int alfa;

    private float[] hsb = new float[3];
    
    private float hue;
    private float saturation;
    private float brightness;


    /**
     * Konstruktor
     */
    public Pixel(){}

    Pixel(int r, int g, int b) {
        this.red = r;
        this.green = g;
        this.blue = b;
    }



    /**
     * @return the red
     */
    public int getRed() {
        return red;
    }

    /**
     * @param red the red to set
     */
    public void setRed(int red) {
        this.red = red;
    }

    /**
     * @return the green
     */
    public int getGreen() {
        return green;
    }

    /**
     * @param green the green to set
     */
    public void setGreen(int green) {
        this.green = green;
    }

    /**
     * @return the blue
     */
    public int getBlue() {
        return blue;
    }

    /**
     * @param blue the blue to set
     */
    public void setBlue(int blue) {
        this.blue = blue;
    }

    /**
     * @return the brightness
     */
    public float getBrightness() {
        return brightness;
    }

    /**
     * @param brightness the brightness to set
     */
    public void setBrightness(int brightness) {
        this.setBrightness(brightness);
    }

    /**
     * @return the alfa
     */
    public int getAlfa() {
        return alfa;
    }

    /**
     * @param alfa the alfa to set
     */
    public void setAlfa(int alfa) {
        this.alfa = alfa;
    }

    /**
     * @return the hsb
     */
    public float[] getHsb() {
        return hsb;
    }

    /**
     * @param hsb the hsb to set
     */
    public void setHsb(float[] hsb) {
        this.hsb = hsb;
        this.hue = hsb[0];
        this.saturation = hsb[1];
        this.brightness = hsb[2];
    }


    /**
     * @return the hue
     */
    public float getHue() {
        return hue;
    }

    /**
     * @param hue the hue to set
     */
    public void setHue(float hue) {
        this.hue = hue;
    }

    /**
     * @return the saturation
     */
    public float getSaturation() {
        return saturation;
    }

    /**
     * @param saturation the saturation to set
     */
    public void setSaturation(float saturation) {
        this.saturation = saturation;
    }

    /**
     * @param brightness the brightness to set
     */
    public void setBrightness(float brightness) {
        this.brightness = brightness;
    }
}
